package com.example.dao;

import com.example.domain.Computer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/2/21.
 */
public interface CommonDao<T> {
    List<T> getList(@Param("key") String key, @Param("start")int start, @Param("size")int size);
    int total(@Param("key") String key);
    boolean add(T entity);
    boolean update(T entity);
    boolean delete(T entity);
    T get(String ip);
}
